import request from '@/utils/request'

// 查询设备报修详细
export function getDeviceRepair(deviceId) {
  return request({
    url: "business/deviceRepair/" + deviceId,
    method: "get",
  });
}

// 新增报修设备
export function addDeviceRepair(data) {
  return request({
    url: "business/deviceRepair",
    method: "post",
    data: data,
  });
}

// 修改报修设备
export function updateDeviceRepair(data) {
  return request({
    url: "business/deviceRepair",
    method: "put",
    data: data,
  });
}